home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Packmags
/
NewsFlash - Issue 07 (1990-01)(UGA - 17-Bit Software)(Disk 1 of 2)[a intro].zip
/
NewsFlash - Issue 07 (1990-01)(UGA - 17-Bit Software)(Disk 1 of 2)[a intro].adf
/
prog
/
tmt.doc
< prev
next >
Wrap
Text File
|
1996-12-24
|
11KB
|
376 lines
This utility was giving to us to join our competitions so therefor
for exclusive use on Newsflash and the UGA serie. Check out our
prices and join our competitions too....
VECTOR will soon write a monthly article for us so wait and see..
--------------------
The Mirage Tool V1.1
by VECTOR
--------------------
This program is only useful to assembly programmers !
Message to all SEKA freaks: SEKA is shit, DEVPAC is it !
DEVPAC 2.14 ofcourse (1.0 is shit)
---------------------------------------------------------------------------
THE STORY
Some months ago MEL coded his first demo and asked me if I could make a
program that would generate sinus tables for him. (AFTER TC had made 26
sin-tables for him !). So I did and after months of coding, to much
updates and killing many bugs, this is the result :a completely mouse-
controlled sinus-generator which will generate ANY sinus table YOU want.
The program was ment to be used in our group only, but i've seen some
pour guys (LAMERS ?!?!) trying to make sin-tables with their pocket-
calculator or their own basic-programs, so I decided to release this
useful tool.
Don't forget to copy 'mathieeedoubbas.library' in the LIBS: directory
(sorry for that, but that's the way HiSoft handles Math)
---------------------------------------------------------------------------
RUNNING IT
When you start TMT you will see a status window, showing 'Initializing...'
and after a few moments it shows 'Ready.'
TMT has three menus on the menu bar. The first menu, named PROJECT, contains
four boring options.
PREFERENCES - your prefs. (see below)
MEMORY - just the amount of memory left in the system.
ABOUT - some information about the program itself.
QUIT - leave the program.
The second menu contains the real thing...
SINUS - Generate a standard sinus table
ADD n SINUSES - Add a number of sinuses
MULTIPLY n SINUSES - Multiply a number of sinuses
SINUS Dec/Inc - Bounching effect
TRIANGLE - Generates a very blocky thing
And a new menu:
TXconvert - Converts ASCII text into font positions
PREFERENCES:
When you select this menu, a window will pop up. This window contains two
options:
1)
Redefine the circle, the number in the box will be the amount of
steps a circle is devided in (default 360 degrees). So when you fill in
256, the circle will be devided in 256 steps (A guy from 'BOUNTY' wanted
this option, so is build it in)
2)
The sign '- +' means that at the end the minimum value plus
the maximum value will be the maximum value (The value you filled in in
the input window !)
The sign '0 ±' means that the biggest value will be the maximum value.
got it ?, No ?
Well,let me give you an example.
Lets say that you have selected '- +', go to 'SINUS Dec/Inc'
The value you fill in in the box 'maximum value' is very important !
After calculating the sinus, you go to 'Info' and you will see that
the minimum value plus the maximum value is exactly the number you
filled in in the box 'maximum value'.(Useful !?!?)
Lets go to the preferences again (Don't forget to click on Quit!)
Now select '0 ±', calculate the sinus again and go to 'Info'. Now
you will see, that the biggest value is recalculated to the
maximum value ! (Thought of this option myself)
IF 'you got it' THEN 'read on' ELSE 'you are an empty head'
---------------------------------------------------------------------------
HOW TO USE TMT
When you select one of the items in the second menu, a window will pop up,
with default values for a sinus table. Simply click in a box and you can
alter the number.
SINUS/TRIANGLE:
'Maximum value' The maximum height of the sinus
'Length one wave' The lenght of one sinus
'Amount of datas' Amount of datas to create
SINUS Dec/Inc
'Begin value' The maximum value at the begin
'End value' The maximum value at the end
ADD/MULTIPLY SINUSES:
'Amount of sinuses' Number of sinuses to add/multiply
'Amount of datas' Amount of datas to create
'max. value' Maximum value of sinus at the end
The rest of the input is the same as 'SINUS/TRIANGLE'
<-------------- Amount of datas ------------>
*1 *2
x x x x x x --- ---
x x x x | |
x x x x | |
----------------x---------------x---------------- --- |
x x |
x x |
x x x ---
<------ Length one wave ------>
VIN(Very important note) :
Max. value will be *1 when you have selected '0 ±' in the preferences or
max. value will be *2 when you have selected '- +' in the preferences.
(See 'PREFERENCES' for more detailed information)
NOTE: You can leave the line editor, either by pressing RETURN or an
illegal key ! (such as ESC)
After clicking 'CALCULATE WAVE' the program generates the sinus table for
you. The status window shows 'Working...'
When finished the program will pop-up a graphic window showing the sinus
itself, a control window and an empty window.
---------------------------------------------------------------------------
THE CONTROL WINDOW
The control window contains some tools to edit the sinus
Move: The number is the amount of places to move. Clicking on either
'<' or '>' will decrease or increase the number of places to move.
Click on the box and you can fill in your own number ( <=99 )
Clicking on 'Right' or 'Left' will move the sinus (guess what ?)
to the right or to the left.
All \ Will show you a preview of the sinus in the empty window.
Even |: This can be either all lines, the even lines, or the odd
Odd / lines.
Info: Shows some info about the sinus
Flip: Flips the sinus (can be turned on/off!)
Modules: All negative values will be positive (can be switched off)
(nice for bounching scrollers !)
Odd/Even: See for yourself (don't know how to explain it)
Backwards: same as the backwards function of AUDIO-MASTER
Quit: quit to the main menu
Save: pops up the save window
---------------------------------------------------------------------------
THE SAVE WINDOW
With this window you can tell the program how to save the sinus table.
'Convert list in' Makes either DC.W or DC.B tables.
'Convert wave in' Converts the sin-values in words or bytes.
'End list with' Adds a mark to the end of the table.
'End data with' With this you can add something to the values.
(such as '90F')
'Offset before multiplying' Number to add to the values before mult.
'Multiply wave with' Number to multiply values with (very usefull for
bitplanescrollers (you don't have to multiply in
the program itself))
'Offset after multiplying' Number to add after multiplying.
'lowest value to zero' The lowest value will always be zero if this is
'YES'.
Click 'SAVE WAVE' if you want to save the table. Clicking 'CANCEL' will
bring you back to the control window.
THE EMPTY WINDOW:
Looks very empty doesn't it ?
NOTE: Green means selected !
---------------------------------------------------------------------------
The textconverter:
WHY?
The textconverter was written to reduce the fontdata to a minimum.
The textconverter converts ASCII text directly into fontpositions.
The only thing you have to do is, get a byte, multiply it with your
fontsize and add it to your fontbase. You now have a pointer to character.
No messing around with modulos or such things. Another advantage :
No more text ripping. All text is unreadable.
HOW?
Converting is nice, but what stands were ?
Well here is the list :
Character: ASCII-code: Converted code:
---------- ----------- ---------------
SPACE $20 $00
! $21 $01
" $22 $02
& $26 $03
' $27 $04
( $28 $05
) $29 $06
, $2C $07
- $2D $08
. $2E $09
: $3A $0A
? $3F $0B
A $41 $0C
B $42 $0D
C $43 $0E
D $44 $0F
E $45 $10
F $46 $11
G $47 $12
H $48 $13
I $49 $14
J $4A $15
K $4B $16
L $4C $17
M $4D $18
N $4E $19
O $4F $1A
P $50 $1B
Q $51 $1C
R $52 $1D
S $53 $1E
T $54 $1F
U $55 $20
V $56 $21
W $57 $22
X $58 $23
Y $59 $24
Z $5A $25
0 $30 $26
1 $31 $27
2 $32 $28
3 $33 $29
4 $34 $2A
5 $35 $2B
6 $36 $2C
7 $37 $2D
8 $38 $2E
9 $39 $2F
a $61 $30
b $62 $31
c $63 $32
d $64 $33
e $65 $34
f $66 $35
g $67 $36
h $68 $37
i $69 $38
j $6A $39
k $6B $3A
l $6C $3B
m $6D $3C
n $6E $3D
o $6F $3E
p $70 $3F
q $71 $40
r $72 $41
s $73 $42
t $74 $43
u $75 $44
v $76 $45
w $77 $46
x $78 $47
y $79 $48
z $7A $49
(All codes greater or equal than $a0 will be copied directly)
So that was the list. The lower-case is handy for funny objects or so.
If you want to include speed-codes or other codes in your text, then
just type $ follow by a HEX code. This code will be directly converted
into source.
Example :
'AAA $F5 AAA' would be converted to:
DC.B $0C,$0C,$0C,$00,$F5,$00,$0C,$0C,$0C
Your font-data MUST be saved in the order of the list.
That means:
First 'SPACE' then '!' etc.
This tool together with the 'Font Chopper' will save you a lot of work.
If you want to know how the 'Font Chopper' works then read the DOC of
it. (Should be onn this disk too.)
I hope that you'll find this option usefull.
---------------------------------------------------------------------------
GENERAL INFORMATION
Program name : The Mirage Tool
Version : 1.1
Last update : 27 Dec 1989
Language : HiSoft BASIC
Compiled with : HiSoft Compiler
Crunched with : PowerPacker 2.3b
Written by : VECTOR of Mirage Holland
---------------------------------------------------------------------------
For bug-reports, new ideas for TMT, updates, etc.
Write to:
P. de Boer
Zeeloodsenlaan 79
1785 BM Den Helder
Holland
This program may be freely copied, but you have to include the DOC file.
SPREAD THE DISK AND THE WORD !
MIRAGE BEYOND THE LIMITS OF PERFECTION
========================================